<?php

if(!empty($_POST))
{
//	print_r($_POST);die;
	$re = insert('nav', $_POST);
//	print_r($re);die;
	if($re)
	{
		echo '添加成功';
		header('Refresh:1;index.php?a=admin&b=nav&c=index');
		die;
	}
	else
	{
		echo '添加失败';
		header('Refresh:1;index.php?a=admin&b=nav&c=add');
		die;
	}	
}

$father = selectAll('nav');


include('app/admin/nav/html/add.html');
?>